What is the meaning of the word "up and down"?

Definitions:

  1. alternately upward and downward copy to clipboard adverb
    • The lion eyed the zebra up and down whilst deciding when to strike. copy to clipboard
  2. moving backward and forward along a given course copy to clipboard adverb
    • The coach walked up and down the locker room. copy to clipboard